package com.itcast.cn.myhashset;


import java.util.List;

/**
 * @PackageName: com.itcast.cn.myhashset
 * @ClassName: Demo
 * @Author: wusong
 * @Date: 2020/7/7 0007 14:56
 * @Description:
 */
public class Demo {
    public static void main(String[] args) {
        String[] arr = {"rencai", "doubi", "erdan"};
        for (String s : arr) {
            if ("doubi".equals(s)) {
                System.out.println("包含");
                return;
            }
        }
        System.out.println("不包含");
       /* List<String> list = List.of(arr);
        boolean b = list.contains("doubi");
        System.out.println(b);*/
    }
}

